projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01723fa
)
dialog: Let GtkButton manage its style classes
author
Timm Bäder
<mail@baedert.org>
Sat, 29 Oct 2016 08:16:03 +0000
(10:16 +0200)
committer
Timm Bäder
<mail@baedert.org>
Mon, 31 Oct 2016 11:20:41 +0000
(12:20 +0100)
A button created using gtk_button_new_with_label will already have the
text-button style class applied.
gtk/gtkdialog.c
patch
|
blob
|
history
diff --git
a/gtk/gtkdialog.c
b/gtk/gtkdialog.c
index 18da8e6bb44f1a42c6c7f3398578d1aa8ed40a32..d8464b34d10a557ddc21353bf2c0aca3dd3c553c 100644
(file)
--- a/
gtk/gtkdialog.c
+++ b/
gtk/gtkdialog.c
@@
-927,7
+927,6
@@
gtk_dialog_add_button (GtkDialog *dialog,
button = gtk_button_new_with_label (button_text);
gtk_button_set_use_underline (GTK_BUTTON (button), TRUE);
- gtk_style_context_add_class (gtk_widget_get_style_context (button), "text-button");
gtk_widget_set_can_default (button, TRUE);
gtk_widget_show (button);